/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pv1682010.gui;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 *
 * @author Petr
 */
public class Translations {
    private static Locale loc;

    public static Locale getLocale() {
        if (loc != null) {
            return loc;
        } else {
            return Locale.getDefault();
        }
    }

    public static void setLocale(Locale locale) {
        loc = locale;
    }

    public static ResourceBundle getRb() {
        return ResourceBundle.getBundle("pv1682010.gui.translations", getLocale());
    }
}